package com.cc.visitor.controller;

import com.cc.alltype.ResponseResult;
import com.cc.visitor.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author chanchaw
 * @create 2024-09-26 16:33
 */
@CrossOrigin
@RestController
@RequestMapping("/employee")
public class EmployeeController {
    @Autowired
    private EmployeeService service;
    @PostMapping("/get8Department/{departmentSid}")
    public ResponseResult get8Department(@PathVariable String departmentSid){
        return ResponseResult.ok(service.get8Department(departmentSid));
    }
    @PostMapping("/get8sname")
    public ResponseResult get8sname(@RequestBody String sname){
        return ResponseResult.ok(service.get8sname(sname));
    }
}
